<!--首页-->
<template>
  <div class="index-content">
    <!--广告轮播图-->
    <div class="HomeBan" style="overflow: hidden;">
      <!--轮播图-->
      <div class="Carousel" style="width: 120%;transform: translateX(-190px);">
        <el-carousel type="card" indicator-position="none" height="370px">
          <el-carousel-item key="1" style="width: 980px">
            <img src="../assets/uploadfiles/image/banner/HomeBan.jpg" alt="HomeBan">
          </el-carousel-item>
          <el-carousel-item key="2" style="width: 980px">
            <img src="../assets/uploadfiles/image/banner/HomeBan1.jpg" alt="HomeBan">
          </el-carousel-item>
          <el-carousel-item key="3" style="width: 980px">
            <img src="../assets/uploadfiles/image/banner/HomeBan2.jpg" alt="HomeBan">
          </el-carousel-item>
        </el-carousel>
      </div>
      <!--精品童装-->
      <div class="Adver">
        <a href="#">
          <img src="../assets/uploadfiles/image/temp/tongzhuang.jpg" alt="童装">
        </a>
      </div>
    </div>
    <!--中间的内容-->
    <div class="contain">
      <!--活动及品牌新闻-->
      <div>
        <!--标题-->
        <div class="title">
          <div>WHAT`S NEW<em>活动及品牌新闻</em></div>
        </div>
        <br>
        <!--童装列表-->
        <div class="content-list">
          <div class="xinwen2_1" v-for="index in 6" :key="index">
            <div class="xinimg"><a href="#"><img src="../assets/uploadfiles/image/temp/girl01.jpg" width="200"
                                                 height="260"/></a></div>
            <div class="xintitle"><a href="#">为什么对办公系统应用价值的认知很重要？</a></div>
            <div class="xintime">2014-01-22</div>
            <div class="xindes">马蹄捷报映晓日，感恩迎新春。新年伊始，迎来开门红...</div>
          </div>
        </div>
      </div>
      <hr>
      <!--热销商品-->
      <div>
        <!--标题-->
        <div class="title">
          <div>PICK UP ITEM <em>热销商品</em></div>
        </div>
        <br>
        <!--童装列表-->
        <div class="content-list">
          <div class="xinwen2_1" v-for="index in 6" :key="index">
            <div class="xinimg"><a href="#"><img src="../assets/uploadfiles/image/temp/girl01.jpg" width="200"
                                                 height="260"/></a></div>
            <div class="xintitle"><a href="#">为什么对办公系统应用价值的认知很重要？</a></div>
            <div class="xintime">2014-01-22</div>
            <div class="xindes">马蹄捷报映晓日，感恩迎新春。新年伊始，迎来开门红...</div>
          </div>
        </div>
      </div>

    </div>

  </div>
</template>

<script>
import { getUser } from '../api/index'
export default {
  name: 'Index'
}
</script>

<style scoped lang="less">
.index-content {
  // 轮播图，广告
  .HomeBan {
    // 轮播图
    .Carousel {
      width: 100%;
      margin: 0 auto;

      .el-carousel__container {
        .el-carousel__item {
          display: block !important;
        }
      }
    }

    // Adver
    .Adver {
      width: 100%;
      height: 146px;
    }
  }

  // 中间的内容的样式
  .contain {
    width: 980px;
    margin: 0 auto;
    box-sizing: border-box;
    padding-top: 10px;

    .title {
      width: 980px;
      text-align: left;
      box-sizing: border-box;
      float: left;
      margin: 10px 0 10px 0;

      div {
        font-size: 22px;
        color: #83B8D3;

        em {
          font-size: 15px;
          color: #186289;
          padding-left: 10px;
        }
      }

    }

    // 童装列表样式
    .content-list {
      width: 980px;

      .xinwen2_1 {
        width: 225px;
        height: 418px;
        border: 1px solid #e7e7e7;
        box-sizing: border-box;
        float: left;
        padding: 10px;
        margin-right: 18px;
        font-size: 12px;
        background: #fff;
        margin-bottom: 10px;
        color: #444444;
        text-align: left;

        .xintitle {
          margin-top: 10px;
          margin-bottom: 10px;
          text-align: left;
          padding-bottom: 10px;
          border-bottom: 1px dotted #b2b2b2;

          a {
            color: #444444;
            text-decoration: none;
            font-size: 11px;
            font-weight: bold;
          }

          a:hover {
            color: red;
          }
        }

        .xintime {
          font-size: 12px;
          font-weight: bold;
          padding-bottom: 8px;
        }
      }
    }
  }

  .el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    line-height: 300px;
    margin: 0;
  }

  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }

  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }
}
</style>
